package com.aicai.retrofit.client;

import com.aicai.retrofit.api.RiskGatewayApi;
import com.aicai.retrofit.data.IdentityVerifyRequest;
import com.aicai.retrofit.data.RiskResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import com.aicai.retrofit.data.IdentityVerifyResult;

/**
 * Created by wulg on 2019/10/21
 * description:
 */
@Component
public class IdentityVerifyClient {

    @Autowired
    private RiskGatewayApi riskGatewayApi;


    public RiskResponse<IdentityVerifyResult> identityVerify(String tokenId, IdentityVerifyRequest request){
        return riskGatewayApi.identityVerify(tokenId,request);
    }
}
